package com.cloud.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cloud.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 项目授权管理
 *
 * @author yzj
 * @since 2022-12-07
 */
@Data
@Schema(name = "SysProjectAuth对象", description = "系统管理")
@TableName("sys_project_auth")
public class SysProjectAuth extends BaseEntity {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "系统编号")
    private String sysCode;

    @Schema(description = "授权类型(0内部系统 1浙政钉 2浙政钉扫码)")
    private Integer authType;

    @Schema(description = "域名地址")
    private String domainName;

    @Schema(description = "应用标识")
    private String appCode;

    @Schema(description = "访问密钥")
    private String accessKey;

    @Schema(description = "密钥")
    private String secretKey;

    @Schema(description = "租户ID")
    private String tenantId;

    @Schema(description = "授权部门ID")
    private Long authDeptId;

    @Schema(description = "部门名称")
    @TableField(exist = false)
    private String deptName;

    @Schema(description = "项目名称")
    @TableField(exist = false)
    private String sysName;

    @Schema(description = "项目是否应用")
    @TableField(exist = false)
    private Integer isApply;

}
